package com.zdj.presentation.modules.main.views;

import android.view.View;

import com.zdj.presentation.R;
import com.zdj.presentation.base.BaseActivity;
import com.zdj.presentation.databinding.ActivityHomeBinding;
import com.zdj.presentation.modules.main.handlers.HomeHandlers;
import com.zdj.presentation.modules.main.vms.HomeVm;

/**
 * 登录之后跳转的界面 <br/>
 * 作者 ：dengjie zhang <br/>
 * created at 2017/2/13 7:29
 */
public class HomeActivity extends BaseActivity<HomeVm,ActivityHomeBinding> implements HomeHandlers{

    @Override
    protected void initVms() {
        viewModel = new HomeVm(this);
    }

    @Override
    protected int getContentLayoutId() {
        return R.layout.activity_home;
    }

    @Override
    protected void setViewModel2Binding() {
        viewDatabinding.setHandlers(this);
    }

    @Override
    protected void initView() {

    }

    @Override
    public void gotoPractice(View view) {
        showToast("点击去练习按钮");
    }

    @Override
    public void gotoReview(View view) {
        showToast("点击去复习按钮");
    }

    @Override
    public void gotoRepository(View view) {
        showToast("点击去知识库按钮");
    }

    @Override
    public void gotoMine(View view) {

    }
}
